libblktapctl: fix use-after-free bug
authorGianni Tedesco <gianni.tedesco@citrix.com>
Tue, 3 Aug 2010 16:34:08 +0000 (17:34 +0100)
committerGianni Tedesco <gianni.tedesco@citrix.com>
Tue, 3 Aug 2010 16:34:08 +0000 (17:34 +0100)
commit27d3eb3d9953399d78b648efac6565e92613cae1
treedb85c50091ed42928ec29e32a26ad1c88a3ff2ab
parent0e05a47ca4e680f7ed8d5ac5bce73e9caba737ac
libblktapctl: fix use-after-free bug

This has not caused crashes because generally use after free is OK
provided nothing else is going on. However the patch makes things
correct. It also allows us to use heap poisoning feature of valgrind on
tools linking to libblktapctl.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/blktap2/control/tap-ctl-list.c